package com.summer.common.model;

import java.io.Serializable;

/**
 * Created by Administrator on 2016/8/24 0024.
 * Ajax请求的返回实体类
 */
public class AjaxResult implements Serializable {
    /**
     * 处理结果是否成功
     */
    private boolean result;

    /**
     * 附带的消息
     */
    private String message;

    /**
     * 附带的数据
     */
    private Object data;

    public AjaxResult(boolean result) {
        this.result = result;
    }

    public AjaxResult(boolean result, String message) {
        this.result = result;
        this.message = message;
    }

    public AjaxResult(boolean result, Object data) {
        this.result = result;
        this.data = data;
    }

    public AjaxResult(boolean result, String message, Object data) {
        this.result = result;
        this.message = message;
        this.data = data;
    }

    public boolean isResult() {
        return result;
    }

    public void setResult(boolean result) {
        this.result = result;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
